const express = require('express');
const router = express.Router();
const api = require('./api');
const routesManage = require('./routes');

router.get('/', (req, res) => {
  res.render('welcome', { title: 'MockMini Mock平台' });
});

router.get('/examples', (req, res) => {
  res.render('examples', { title: '示例模版' });
});

router.use('/api', api);
router.use('/routes', routesManage);

module.exports = router; 